import  actionType from "../action";

let  userReducer = (state={info:{}},action:any)=>{
    switch(action.type){
        case  actionType.INITUSER://假设 action.playload 里面有{userage:18,username:"lili"}
            return  {info:{...state.info,...action.playload}}
    }

    return  state;

}
export  default  userReducer;